package com.hoshiicloud.saleorder.param;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
* <p>
* 新增订单状态记录参数
* </p>
*
* @author zhangshuhu
* @since 2019-06-03
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="新增订单状态记录", description="新增订单状态记录")
public class OrderStatusAddParam implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单编号")
    private String orderNo;

    @ApiModelProperty(value = "订单ID")
    private Long orderId;

    @ApiModelProperty(value = "分类   1-下单 2-支付 3-采购 4-出库 5-配送 6-售后")
    private String catalog;

    @ApiModelProperty(value = "状态值")
    private Integer actionCode;

    @ApiModelProperty(value = "状态说明")
    private String actionDesc;

    @ApiModelProperty(value = "发生时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime actionDatetime;

    @ApiModelProperty(value = "关联ID")
    private Long refId;

    @ApiModelProperty(value = "关联单号  按不同状态关联不同的单号")
    private String refNo;
}
